import request from '@/utils/request'

// 查询毕业管理列表
export function listGraduation(query) {
  return request({
    url: '/student/graduation/list',
    method: 'get',
    params: query
  })
}


// 查询毕业管理列表
export function listMasterGraduation(query) {
  return request({
    url: '/student/graduation/master',
    method: 'get',
    params: query
  })
}
export function gradStudent(classId) {
  return request({
    url: '/student/graduation/grad/'+classId,
    method: 'get'
  })
}

// 查询毕业管理详细
export function getGraduation(id) {
  return request({
    url: '/student/graduation/' + id,
    method: 'get'
  })
}

// 审核毕业信息
export function checkGraduation(data) {
  return request({
    url: '/student/graduation/check',
    method: 'post',
    data: data
  })
}

// 修改毕业管理
export function updateGraduation(data) {
  return request({
    url: '/student/graduation',
    method: 'put',
    data: data
  })
}

// 删除毕业管理
export function delGraduation(id) {
  return request({
    url: '/student/graduation/' + id,
    method: 'delete'
  })
}

// 导出毕业管理
export function exportGraduation(query) {
  return request({
    url: '/student/graduation/export',
    method: 'get',
    params: query
  })
}

// 下载导入模板
export function importTemplate() {
  return request({
    url: '/student/graduation/importTemplate',
    method: 'get'
  })
}